package com.xtck.ha.system.api;

import com.xtck.ha.common.core.constant.ServiceNameConstants;
import com.xtck.ha.common.core.domain.R;
import com.xtck.ha.common.domain.system.api.SysDictData;
import com.xtck.ha.system.api.factory.RemoteDictFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "remoteDictService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteDictFallbackFactory.class)
public interface RemoteDictService {


    @GetMapping("/dict/data/list/{dictType}")
    public R<List<SysDictData>> list(@PathVariable("dictType") String dictType);


}
